package org.cainiao.basic.reactive.mock;

import java.util.concurrent.atomic.AtomicInteger;

public class Assert {

    private final AtomicInteger errorCount;

    public void hasValue(int value) {
        if (errorCount.get() != value) {
            throw new RuntimeException("test");
        }
    }

    public Assert(AtomicInteger errorCount) {
        this.errorCount = errorCount;
    }

}
